import cls from "classnames";
import React from 'react';
import { CommonText } from "../../CommonText";
import Style from "../../index.module.less";
/**
 * 状态文本组件
*/
export const StatusText = (props) => {
    const { type = 'default', ...args } = props;
    return (<CommonText icon={<div className={cls(Style.status, Style[type])}></div>} type={type === 'error' ? 'error' : 'default'} {...args}/>);
};
export default StatusText;
